Scenario #4302: Revert Coop Assets Subscription

Properties

Required

Given

name value
memberNumber M-3101000
comment reverting some incorrect transaction
dateOfIncorrectTransaction 2024-02-15

Find membershipUuid

HTTP GET "/api/hs/office/memberships/M-3101000" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "1c32881f-9f33-4750-bd6f-cb303a6adf63", // Membership: M-3101000 - Test AG
  "partner" : {
    "uuid" : "ceaf680a-e52e-4625-b80f-fe70a66e6428", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "d8468486-cc0a-4797-b367-4c393953f190", // partnerRelationUuid
      "anchor" : {
        "uuid" : "bb7b76f1-1922-46aa-8c22-468c70c3a9fa", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "c9fdae44-bedc-4fb6-b5ad-f7016218fc25", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "country" : "China",
          "province" : "Guangdong Province",
          "city" : "Dongguan City",
          "street" : "No.2 Commercial Second Street",
          "district" : "Niushan Wei Wu",
          "department" : "Executive Board",
          "building" : "Thi Chi Koh Building"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "c0e8a6b5-877b-4ced-a480-4edf988d3681",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101000",
  "memberNumberSuffix" : "00",
  "validFrom" : "2020-10-15",
  "validTo" : "2023-12-31",
  "status" : "CANCELLED",
  "membershipFeeBillable" : true
}

Create the Coop-Assets-REVERSAL Transaction

HTTP POST "/api/hs/office/coopassetstransactions" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  -H 'Content-Type: application/json' \
  --data-binary @- <<EOF
{
  "membership.uuid" : "1c32881f-9f33-4750-bd6f-cb303a6adf63", // Membership: M-3101000 - Test AG
  "transactionType" : "REVERSAL",
  "reference" : "sign 2024-02-15",
  "assetValue" : -10,
  "comment" : "coop-assets deposit transaction with wrong asset value",
  "valueDate" : "2024-02-15",
  "revertedAssetTx.uuid" : "67e07a56-9fb5-471f-b0a9-1ecd71c588dd" // CoopAssets-Transaction with incorrect assetValue
}
EOF
=> status: 201 CREATED 9890322c-3c31-46bc-bab2-999750146b5e

Verify Coop-Assets REVERSAL-Transaction

HTTP GET "/api/hs/office/coopassetstransactions/9890322c-3c31-46bc-bab2-999750146b5e" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "9890322c-3c31-46bc-bab2-999750146b5e",
  "membership.uuid" : "1c32881f-9f33-4750-bd6f-cb303a6adf63", // Membership: M-3101000 - Test AG
  "membership.memberNumber" : "M-3101000",
  "transactionType" : "REVERSAL",
  "assetValue" : -1E+1,
  "valueDate" : "2024-02-15",
  "reference" : "sign 2024-02-15",
  "comment" : "coop-assets deposit transaction with wrong asset value",
  "adoptionAssetTx" : null,
  "transferAssetTx" : null,
  "revertedAssetTx" : {
    "uuid" : "67e07a56-9fb5-471f-b0a9-1ecd71c588dd", // CoopAssets-Transaction with incorrect assetValue
    "membership.uuid" : "1c32881f-9f33-4750-bd6f-cb303a6adf63", // Membership: M-3101000 - Test AG
    "membership.memberNumber" : "M-3101000",
    "transactionType" : "DEPOSIT",
    "assetValue" : 1E+1,
    "valueDate" : "2024-02-15",
    "reference" : "sign 2024-02-15",
    "comment" : "coop-assets deposit transaction with wrong asset value",
    "adoptionAssetTx.uuid" : null,
    "transferAssetTx.uuid" : null,
    "revertedAssetTx.uuid" : null,
    "reversalAssetTx.uuid" : "9890322c-3c31-46bc-bab2-999750146b5e"
  },
  "reversalAssetTx" : null
}

generated on 2026-07-17 01:42:52 for branch